<?php
//浮点数的计算

var_dump(0.1 * 3 > 0.3, 0.1 *10 * 3 / 10 == 0.3);

$i = 0.1;
$i = 0.03;

$arr = range(1,1000);
foreach ($arr as $v) {
	$a = floatval($i * $v);
	//$a = ($i * 100) / 100 * $v;   //=$i * $v
	//$a = ($i * 100) * $v / 100;
	var_dump($a, json_encode($a));
}